<?php

include '../Connect_To_Database.php';

$name = $_POST['USER_ID'];


$strSQL = "SELECT * FROM giswebdatabase WHERE USER_ID = '$name'";
$objQuery = mysql_query($strSQL);
$Num_Rows = mysql_num_rows($objQuery);

while ($objResult = mysql_fetch_array($objQuery)) {
    $ID = $objResult['ID'];
    $rank = $objResult["ranking"];
}
$rank += 1;
$strSQL = "UPDATE giswebdatabase SET ranking = '$rank' WHERE ID = '$ID'";
$objQuery = mysql_query($strSQL);
?>